package net.jblog.struts.backoffice.form.parameter;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class ParameterForm extends ActionForm {
	private static final long serialVersionUID = -2741126315505652266L;

	private String cle;
	private String valeur;
	
	public String getCle() {
		return cle;
	}
	public void setCle(String cle) {
		this.cle = cle;
	}
	public String getValeur() {
		return valeur;
	}
	public void setValeur(String valeur) {
		this.valeur = valeur;
	}
	
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		try {
	 		request.setCharacterEncoding("ISO-8859-1");
			this.setCle(null);
			this.setValeur(null);
		} catch (UnsupportedEncodingException e) {
	 		e.printStackTrace();
	 	}
	 	super.reset(mapping, request);
	}
}
